package org.wenhuayuan.hiui

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
import org.wenhuayuan.hiui.tab.HiTabBottomDemoAty
import org.wenhuayuan.uilibrary.tab.bottom.HiTabBottom
import org.wenhuayuan.uilibrary.tab.bottom.HiTabBottomInfo

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val hiTabBottom = findViewById<HiTabBottom>(R.id.hiBottom)
        val tabInfo = HiTabBottomInfo("首页",
            "fonts/iconfont.ttf",
            getString(R.string.if_home), null,
            "#ff656667",
            "#ffd44949")

        hiTabBottom.setHiTabInfo(tabInfo)

        btn_demo_aty.setOnClickListener {
            startActivity(Intent(this, HiTabBottomDemoAty::class.java));
        }
    }
}
